<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jb-aptech毕业设计项目</TITLE>
<meta name="renderer" content="ie-comp">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script src="../../script/common.js"></script>
<script src="../../script/vue.js"></script>
<script src="../../script/jquery-3.3.1.min.js"></script>
</head>
<body>

<div id="app">
	<div class="page_title">客户信息管理 > 客户信息 > 联系人 </div>
	<div class="button_bar">
		<button class="common_button" onclick="help('');">帮助</button>
		<button class="common_button" onclick="to('linkman_add.html');">新建</button>
		<button class="common_button" onclick="back();">返回</button>
	</div>
	<table class="query_form_table">
		<tr>
			<th>客户编号</th>
			<td>{{obj.lkm_cust_no}}</td>
			<th>客户名称</th>
			<td>{{obj.lkm_cust_name}}</td>
		</tr>
	</table>
	<br />
	<table class="data_list_table">
		<tr>
			<th>姓名</th>
			<th>性别</th>
			<th>职位</th>
			<th>办公电话</th>
			<th>手机</th>
			<th>备注</th>
			<th>操作</th>
		</tr>
		<tr v-for="o in objs">
			<td class="list_data_text" v-text="o.lkm_name">沈聪林</td>
			<td class="list_data_ltext" v-text="o.lkm_sex">男</td>
			<td class="list_data_text" v-text="o.lkm_postion">总经理</td>
			<td class="list_data_text" v-text="o.lkm_tel">010-68348438-668</td>
			<td class="list_data_text" v-text="o.lkm_mobile">13622883228</td>
			<td class="list_data_op">
				　</td>
			<td class="list_data_op">
				<img onclick="to('linkman_edit.html');" title="编辑" src="../../images/bt_edit.gif" class="op_button" />
				<img onclick="del('“联系人：沈聪林”');" title="删除" src="../../images/bt_del.gif" class="op_button" />

			</td>
		</tr>
	</table>
</div>
<script>
	const vm = new Vue({
		el:'#app',
		data:{
			objs:[],
			pageInfo:{},
			obj:{
				lkm_cust_no:'',
				pageSize: 5,
				pageNum: 1,
			}
		},methods: {
			load(num) {
				this.obj.pageNum = num
				$.getJSON("/CstLinkman/queryPage",this.obj,json => {
					this.objs = json.data.pageInfo.list;
					this.pageInfo = json.data.pageInfo;
				});
				$.getJSON("/CstLinkman/queryById",this.obj,json=>{
					this.obj=json.data.obj;
				})
			}
		},mounted(){
			this.obj.lkm_cust_no=new URLSearchParams(location.search).get("cust_no")
			this.load()
		},
	});
</script>
</body>
</html>